/*
 * @Author: your name
 * @Date: 2022-03-09 16:52:21
 * @LastEditTime: 2022-04-02 00:28:34
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \react-antd-admin\vue-admin-template\src\store\getters.js
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  routers: state => state.user.menus,
  userInfo: state => state.user.userInfo,
  role: state => state.user.role,
}
export default getters
